package com.snail.auth.action;

import com.common.ResultUtil;
import com.common.entity.BaseController;
import com.snail.auth.service.AuthOrgGradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 组织机构规格
 *
 * @Author: houyanfeng 2019/3/4
 */
@RestController
@RequestMapping("auth/orggrade")
public class AuthOrgGradeController extends BaseController {
    @Autowired
    private AuthOrgGradeService authOrgGradeService;

    @GetMapping
    public Map list() {
        return ResultUtil.result(authOrgGradeService.list());
    }

}
